home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib6
/
v_08_11
/
8n11069a
< prev
next >
Wrap
Text File
|
1995-11-01
|
990b
|
29 lines
TITLE cswitch.asm - interface for Zortech C++ (Small Model)
DOSSEG
.MODEL SMALL
.CODE
EXTRN _addrRunningTcbSp:WORD
EXTRN _running:WORD
PUBLIC _ContextSwitch__Nv
_ContextSwitch__Nv PROC NEAR
push bp
mov bp, word ptr _addrRunningTcbSp
mov [bp], sp
mov bp, word ptr _running ; sp = running->sp
mov sp, [bp + 4] ; WARNING 4 depends of LINK
pop bp ; 2 ptrs(4)
ret
_ContextSwitch__Nv ENDP
PUBLIC _RunNext__Nv
_RunNext__Nv PROC NEAR
push bp
mov bp, word ptr _running ; sp = running->sp
mov sp, [bp + 4] ; WARNING 4 depends of LINK
pop bp ; 2 ptrs(4)
ret
_RunNext__Nv ENDP
END